package com.qfedu.fmmall.sign.service.feign;

import com.qfedu.fmmall.common.vo.ResultVO;
import com.qfedu.fmmall.entity.Users;
import com.qfedu.fmmall.sign.service.fallback.UserSignUpFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author : yanBin
 * @date :2022/1/22 14:37
 */
@Repository
@FeignClient(value = "user-sign-up",fallback = UserSignUpFallback.class)
public interface UserSignUpClient {
    @PostMapping("/user/sign-up")
    ResultVO userRegistration(@RequestBody Users users);
}
